combit List & Label 29 - .NET Help
Programming Introduction / Examples / General / Export / Export Without User Interaction
In This Topic
    Export Without User Interaction
    In This Topic

    In order to run the export in the background, at least the target format, the path and the file name for the creation have to be defined in List & Label. This is done by the class ExportConfiguration. Doing this possible user-interactions will be automatically supressed like progress-bar, file select dialogs etc.

    using (ListLabel LL = new ListLabel())
    {
        // Define/Assign data source
        LL.DataSource = CreateDataSet();
    
        // Create export configuration (target here is PDF)
        ExportConfiguration exportConfiguration = new ExportConfiguration(LlExportTarget.Pdf, "<Target file name with path>", "<Project file name with path>");
    
        // Show result
        exportConfiguration.ShowResult = true;
    
        // Start export
        LL.Export(exportConfiguration);
    }
    
    Using LL As New ListLabel()
        ' Define/Assign data source
        LL.DataSource = CreateDataSet()
    
        ' Create export configuration (target here is PDF)
        Dim exportConfiguration As New ExportConfiguration(LlExportTarget.Pdf, "<Target file name with path>", "<Project file name with path>")
    
        ' Show result
        exportConfiguration.ShowResult = True
    
        ' Start export
        LL.Export(exportConfiguration)
    End Using